<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	contentType="text/html; charset=UTF-8"%>
<%@ include file="/v1/pages/public/taglibs.jsp"%>
<%
	//文件服务器
	pageContext.setAttribute("FILE_U_URL",
	cn.jekun.component.core.service.ConfigService
			.getFileUploadUrl());
	pageContext.setAttribute(
	"FILE_O_URL",
	cn.jekun.component.core.service.ConfigService
			.getFileOpenUrl() + "/200");
	pageContext.setAttribute("FILE_O_S_URL",
	cn.jekun.component.core.service.ConfigService
			.getFileOpenUrl());
	pageContext.setAttribute("FILE_D_URL",
	cn.jekun.component.core.service.ConfigService
			.getFileDownloadUrl());
%>	
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>云便利</title>
<link rel="shortcut icon" href="img/favicon.ico">
<link rel="stylesheet" href="${ctx}/v1/h5/css/jquery.mobile.ldh.structure.css">
<link rel="stylesheet" href="${ctx}/v1/h5/css/jquery.mobile.ldh.theme.css">
<link rel="stylesheet" href="${ctx}/v1/h5/css/jquery.mobile.ldh.css">
<script src="${ctx}/v1/h5/js/default/jquery-1.9.1.min.js"></script>
<script src="${ctx}/v1/h5/js/default/jquery.cookie.js"></script>
<script src="${ctx}/v1/h5/js/default/jquery.mobile.ldh.js"></script>
<script src="${ctx}/v1/h5/js/default/scroll.js"></script>
<script src="${ctx}/v1/h5/js/default/basic.js"></script>

</head>
<body>
<div  id="ldhPaySuccess">
	<div data-role="header" class="header_fixed">
    	
        <h1>支付结果</h1>
    </div>
    <div data-role="content" class="orderContent">
    	<div class="row">
        	<ul>
            	<li>
                	<p class="order_success">支付成功,你可以进行以下操作</p>
                </li>
            </ul>
        </div>
        <div class="box_block order_opt_btm">
        	<ul>
            	<li class="text-center" id="order_opt_btm">
                	<button type="button" data-theme="b" class="main_btn" >继续购物</button>
                	<button type="button" data-theme="b" class="yellow_btn">查看订单</button>
                </li>
            </ul>
        </div>
    </div>
</div>


<script type="text/javascript">
	var ctx ="${ctx}";
	var userId="${userId}";
	var loginSign="${loginSign}";
	/* var url=window.location.href;
	
	var str=url.split("pay_success/");
	
	//$.cookie("userId",str[1].split(".")[0].split("/")[0], {expires:30,path:'/'});
	  
	//$.cookie("loginSign",str[1].split(".")[0].split("/")[1], {expires:30,path:'/'});
	
	$("#order_opt_btm .main_btn").attr("onClick","window.location.href='${ctx}/v1/h5/pages/index.jsp?userId="+str[1].split(".")[0].split("/")[0]+"&loginSign="+str[1].split(".")[0].split("/")[1]+"#ldhHome'");
	$("#order_opt_btm .yellow_btn").attr("onClick","window.location.href='${ctx}/v1/h5/pages/index.jsp?userId="+str[1].split(".")[0].split("/")[0]+"&loginSign="+str[1].split(".")[0].split("/")[1]+"#ldhOrderlist'");
	 */
	/*  
	 if(userId=="" || userId==null || userId=='null'){
		 
		 $("#order_opt_btm .main_btn").attr("onClick","window.location.href='"+ctx+"/h5/index.shtml'");
		 $("#order_opt_btm .yellow_btn").attr("onClick","window.location.href='"+ctx+"/h5/orders.shtml'");

		 
	 }else{
		 
		 
		 if(document.URL.indexOf("storeme.cn")>=0){
		    	
			   $.cookie("userId",userId, {expires:30,path:'/',domain: ".storeme.cn"});
				  
			   $.cookie("loginSign",loginSign, {expires:30,path:'/',domain: ".storeme.cn"});
			 
		   }else if(document.URL.indexOf("jujie.xyz")>=0){
		    	
				$.cookie("userId",userId, {expires:30,path:'/',domain: ".jujie.xyz"});
				  
				$.cookie("loginSign",loginSign, {expires:30,path:'/',domain: ".jujie.xyz"});
				 
		   }else{
			   

				$.cookie("userId",userId, {expires:30,path:'/'});
				  
				$.cookie("loginSign",loginSign, {expires:30,path:'/'});
			 
		   }
		
		$("#order_opt_btm .main_btn").attr("onClick","window.location.href='"+ctx+"/v1/h5/pages/index.jsp?userId="+userId+"&loginSign="+loginSign+"#ldhHome'");
		$("#order_opt_btm .yellow_btn").attr("onClick","window.location.href='"+ctx+"/v1/h5/pages/index.jsp?userId="+userId+"&loginSign="+loginSign+"#ldhOrderlist'");

	 } */
	 
	 $("#order_opt_btm .main_btn").attr("onClick","window.location.href='"+ctx+"/h5/index.shtml'");
	 $("#order_opt_btm .yellow_btn").attr("onClick","window.location.href='"+ctx+"/h5/orders.shtml'"); 
	 
</script>

</body>
</html>
